home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / filutil / msbin.zip / MSBIN.DOC < prev    next >
Text File  |  1993-04-01  |  1KB  |  50 lines

  1.    
  2.  
  3.    Functions in msbin.c are implementations of Microsoft RTL functions 
  4.    not include in the Borland RTL.
  5.  
  6.   
  7.    Functions:
  8.        _fmsbintoieee()
  9.        _fieeetomsbin()
  10.        _dmsbintoieee()
  11.        _dieeetomsbin()
  12.   
  13.    These functions convert back and forth from Microsoft Binary Format
  14.    to IEEE floating point format.
  15.   
  16.    As with the Microsoft RTL functions,
  17.   
  18.    The argument srcX points to the value to be converted and the
  19.    result is stored at the location given at destX.
  20.   
  21.    These routines do not handle IEE NAN's and infinities.  IEEE
  22.    denormals are treated as 0's.
  23.   
  24.    Return:
  25.   
  26.    These functions return 0 if the conversion is successful and 1
  27.    if the conversion causes an overflow.
  28.  
  29.  
  30.  
  31.    The Files:
  32.  
  33.    msbin.c - source for _fmsbintoieee(), _fieeetomsbin(), _dmsbintoiee()
  34.              and _dieeetomsbin()
  35.  
  36.    readmbf.c  - A test file that reads a file of MBF floats, fmbf.dat.
  37.    writembf.c  - A test file that writes a file of MBF floats, fmbf.dat.
  38.    readmbd.c - A test file that reads a file of MBF doubles, fmbd.dat.
  39.    writembd.c - A test file that writes a file of MBF doubles, fmbd.dat.
  40.  
  41.    fmbd.dat - A data file of MBF doubles.
  42.    fmbf.dat - A data file of MBF floats.
  43.  
  44.  
  45.    
  46.    To Create the executables:
  47.  
  48.    Using the commandline -  bcc -w -v -ml readmbf.c msbin.c
  49.    Using the IDE - the project must include the .exe source and msbin.c.
  50.